package base.exa17;

public class Exa05_3 {
    public static void main(String[] args) {
        //String 加密
        String password = "hello world";
        int key = 20;
        char[] p = password.toCharArray();
        for(int i=0;i<p.length;i++){
            p[i]+=key;
        }
        System.out.println(p);
        for(int i=0;i<p.length;i++){
            p[i]-=key;
        }
        System.out.println(p);
    }
}
